package br.com.absolutech.study.chapter3.p117;

import java.awt.Dimension;

public class ReferenceTest {

	public static void main(String[] args) {

		Dimension a = new Dimension(1, 2);
		System.out.println("a.width = " + a.getWidth());
		System.out.println("a.height = " + a.height);

		Dimension b = a;
		b.setSize(3, 4);

		System.out.println("a.width after change in b = " + a.getWidth());
		System.out.println("a.height after change in b = " + a.height);

	}
}
